#lyrics-container {
    height: 75vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    margin-top: 80px;
    position: relative;
    width: 60%;
}

#lyrics {
    font-size: 24px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #666;
    transition: transform 0.6s ease;
}

.line-group {
    margin-bottom: 12px;
}

.line {
    border: 10px;
    display: block;
    border-radius: 10px;
    padding: 0 10px;
    width: fit-content;
    transition: background-color .3s ease-in;
}

.line.left {
    text-align: left;
}

.line.center {
    text-align: center;
    margin: 0 auto;
}

.line.translated {
    color: #e3e3e3b1;
}

.line::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    display: block;
    opacity: 0;
    color: #e3e3e392;
    margin-left: 10px;
    transition: opacity .3s ease-in;
}

.line.click:hover {
    cursor: pointer;
    background-color: #e3e3e33b;
}

.line.click:hover::after {
    opacity: 1;
}

.char {
    display: inline-block;
    color: transparent;
    background: linear-gradient(to right, var(--primary-color) 50%, #e3e3e3e8 50%);
    background-size: 200% 100%;
    background-position: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.6s ease;
}

.highlight {
    background-position: 0%;
}


.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 0px;
    background: #FFF;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 10px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.player-bar {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
    max-width: 880px;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    margin-right: 15px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.album-art img {
    width: 64px;
    height: 64px;
    border-radius: 5px;
}

.album-art i {
    font-size: 24px;
    color: #666;
}

.song-info {
    flex-grow: 0;
    cursor: pointer;
    margin-right: auto;
}

.song-title {
    font-weight: bold;
    margin-bottom: 5px;
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fa-volume-up {
    width: 10px;
}

.artist {
    font-size: 0.9em;
    color: #c3c3c3;
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.control-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    color: #333;
}


.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #ddd;
    position: relative;
    border-radius: 5px;
    overflow: visible;
    cursor: pointer;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: -10px;
    cursor: pointer;
}

.progress {
    width: 30%;
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    transition: width 0.2s ease;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    cursor: grab;
    pointer-events: auto;
}
.progress-bar:active .progress-handle {
    transform: translate(-50%, -50%) scale(1.2);
    cursor: grabbing;
}
.progress-handle.dragging,
.progress-bar:hover .progress-handle {
    opacity: 1;
}

.progress-bar:hover .progress {
    background-color: var(--primary-color);
    opacity: 0.8;
}

.extra-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 4px;
}

.extra-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0 8px;
    color: #666;
}


.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control i {
    font-size: 18px;
    color: #666;
}

.volume-slider {
    width: 100px;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 3px;
}

/* 全屏歌词界面样式 */
.lyrics-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.lyrics-screen {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    backdrop-filter: blur(18px);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #1616169c;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 100px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 99;
    text-align: right;
    width: 100%;
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    margin-top: 135px;
    margin-left: 20px;
}

.album-art-container {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.album-art-container:hover {
    transform: scale(1.02);
}

/* 普通封面模式 */
.album-art-large {
    position: relative;
    animation: fadeInScale 0.6s ease-out;
}

.album-art-large img {
    width: 400px;
    height: 400px;
    border-radius: 10px;
    z-index: 9;
    transition: all 0.3s ease;
}

/* 唱片播放器模式 */
.vinyl-player {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInScale 0.6s ease-out;
}

/* 淡入缩放动画 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 唱片圆盘 */
.vinyl-disc {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #1a1a1a 35%, #2a2a2a 35%, #2a2a2a 36%, #1a1a1a 36%, #1a1a1a 100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
}

/* .vinyl-disc::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, #8B4513 0%, #654321 50%, #3d2817 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
} */

/* 唱片封面 */
.vinyl-cover {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 5;
}

/* 唱片旋转动画 - 始终应用动画 */
.vinyl-disc {
    animation: vinylRotate 5s linear infinite;
    animation-play-state: paused;
}

.vinyl-disc.rotating {
    animation-play-state: running;
}

@keyframes vinylRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 磁头 */
.tonearm {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 160px;
    height: 198px;
    background: url('./assets/images/head.png') no-repeat center;
    background-size: contain;
    transform-origin: 85% 15%;
    transform: rotate(-30deg);
    transition: transform 0.6s ease-in-out;
    z-index: 15;
    pointer-events: none;
    animation: tonearmSlideIn 0.8s ease-out;
}

/* 磁头滑入动画 */
@keyframes tonearmSlideIn {
    0% {
        opacity: 0;
        transform: rotate(-30deg) translateX(50px);
    }
    100% {
        opacity: 1;
        transform: rotate(-30deg) translateX(0);
    }
}

/* 磁头播放状态 */
.tonearm.playing {
    transform: rotate(0deg);
}

.song-details {
    text-align: center;
    margin-top: 20px;
}

.player-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

.current-time,
.duration {
    color: white;
    font-size: 12px;
}

.progress-bar {
    flex-grow: 1;
    height: 2px;
    background-color: #555;
    border-radius: 5px;
    margin: 0 10px;
    position: relative;
}

.progress {
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.player-controls .control-btn {
    color: #fff;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    position: relative;
}

.volume-slider {
    width: 100px;
    margin-left: 10px;
    position: relative;
}

.volume-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: transparent;
    position: relative;
    z-index: 1;
    pointer-events: none;
    /* 禁止对 input 的点击事件 */
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4899f8;
    cursor: pointer;
    pointer-events: auto;
    /* 允许 thumb 的拖动事件 */
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4899f8;
    cursor: pointer;
}

.album-art-large .miku {
    position: absolute;
    height: 419px;
    width: 401px;
}

.album-art-large .miku2 {
    position: absolute;
    height: 452px;
    width: 404px;
}

.album-art-large .miku3 {
    position: absolute;
    height: 563px;
}

.no-lyrics {
    color: var(--primary-color);
    margin: auto;
    font-size: 2em;
}

.loop-icon {
    position: relative;
    display: inline-block;
}

.loop-icon sup {
    position: absolute;
    font-size: 0.6em;
}

/* 全屏歌词界面的进度条样式 */
.lyrics-screen .progress-bar {
    flex-grow: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 0 10px;
    position: relative;
    overflow: visible;
}

.lyrics-screen .progress-bar::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    bottom: -12px;
    cursor: pointer;
}

.progress-handle.dragging {
    opacity: 1;
}

.time-tooltip {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
}

/* 歌词界面的时间提示样式 */
.lyrics-screen .time-tooltip {
    backdrop-filter: blur(4px);
}

/* 高潮点的样式 */
.climax-point {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 67%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* 普通界面的高潮点样式 */
.player-container .climax-point {
    background-color: var(--primary-color);
    box-shadow: 0 0 4px var(--primary-color);
}

/* 歌词界面的高潮点样式 */
.lyrics-screen .climax-point {
    background-color: #ff69b4;
    box-shadow: 0 0 4px #ff69b4;
}

/* 收藏按钮 */
.like-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.like-btn.active {
    color: #ff4081;
    opacity: 1;
}

.playback-speed {
    position: relative;
    display: inline-block;
}

.speed-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-color);
    border: 1px solid var(--background-color);
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.speed-option {
    padding: 6px 16px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.speed-option:hover {
    background-color: var(--secondary-color);
}

.speed-option.active {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
}

.speed-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--background-color);;
}

.close-btn {
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.close-btn:hover {
  opacity: 1;
}

.lyrics-mode-btn {
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
  position: absolute;
  right: 20px;
  top: 10px;
}

.lyrics-mode-btn:hover {
  opacity: 1;
}

.line.romanized {
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 5px;
  color: #e3e3e3b1;
}
.slide-up-enter-active {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-up-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.slide-up-enter-from {
  transform: translateY(100%);
  opacity: 0;
}

.slide-up-leave-to {
  transform: translateY(100%);
  opacity: 0;
}

.slide-up-enter-to,
.slide-up-leave-from {
  transform: translateY(0);
  opacity: 1;
}

/* 封面模式切换过渡动画 */
.cover-fade-enter-active {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cover-fade-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.cover-fade-enter-from {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

.cover-fade-leave-to {
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
}

.cover-fade-enter-to,
.cover-fade-leave-from {
  opacity: 1;
  transform: scale(1) translateY(0);
}
